<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title> 查看代理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>
<body>
<div class="x-body">
    <table class="layui-table">
        <tbody>
        <tr>
            <td>PID:</td>
            <td>${user.id!}</td>
        </tr>
        <tr>
            <td>用户名:</td>
            <td>${user.user!}</td>
        </tr>
        <tr>
            <td>真实姓名:</td>
            <td>${user.showname!}</td>
        </tr>
        <tr>
            <td>注册邮件地址:</td>
            <td>${user.email!}</td>
        </tr>
        <tr>
            <td>联系电话:</td>
            <td>${user.phone!}</td>
        </tr>
        <tr>
            <td>代理分润:</td>
            <td>${model.staff! * 100}%</td>
        </tr>
        <tr>
            <td>代理状态:</td>
            <td><%if(model.status! ==1 ){%>已激活<%}else{%>未激活<%}%></td>
        </tr>
        <tr>
            <td>操作时间:</td>
            <td>${model.optTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
        </tr>
        <tr>
            <td>创建时间:</td>
            <td>${model.createTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
        </tr>
    </table>
    <div style="text-align: center;">
        <button class="layui-btn layui-btn-warm" onclick="to_proxy_record_list('${user.id!}')">查看分润详情</button>
        <button class="layui-btn layui-btn-normal" onclick="to_user_list('${user.id!}')">查看下级用户</button>
        <button class="layui-btn layui-btn-warm" onclick="x_admin_close()">关&nbsp;&nbsp;闭</button>
    </div>
</div>
</body>
<script>

    $(function () {
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
            });
            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
            });
        });
    });

    function to_user_list(id) {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
        window.parent.location.href = "/admin/user/list2?parent_uid=" + id;
    }

    function to_proxy_record_list(id) {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
        window.parent.location.href = "/admin/proxy/record_list?uid=" + id;
    }

</script>
</html>